using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Mirror;
using UnityEngine.SceneManagement;

public class Scence : MonoBehaviour
{
    private NetworkManager networkManager; // 创建 NetworkManager 对象


    public void ButtonLoadScene()
    {
        SceneManager.LoadScene("SampleScene1");
    }

    // private void Update()
    // {
    //     Scene scene = SceneManager.GetActiveScene();
    //     if (scene.name == "Main")
    //     {
    //         GetComponent<MyNetworkManagerHUD>().enabled = false;
    //     }
    //     else
    //     {
    //         GetComponent<MyNetworkManagerHUD>().enabled = true;
    //     }
    // }
}